package com.itcncp.ucenter.dao.model;

import java.io.Serializable;

public class ItcsRoadownerInfo implements Serializable {
    /**
     * 收费公路业主编号（id）=省域编号 + 参与方类型 + 业主顺序码 
 业主顺序码:3位数字，为001 ~999顺序码，顺序码按照注册日期的先后编写
     *
     * @mbg.generated
     */
    private String roadOwnerId;

    /**
     * 业主单位名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 联系人姓名
     *
     * @mbg.generated
     */
    private String contact;

    /**
     * 联系电话,座机号
     *
     * @mbg.generated
     */
    private String tel;

    /**
     * 地址 XX省XX市XX区（县）XXX 详细地址
     *
     * @mbg.generated
     */
    private String address;

    /**
     * 开户行
     *
     * @mbg.generated
     */
    private String bank;

    /**
     * 开户行地址 XX省XX市XX区（县）XXX 详细地址
     *
     * @mbg.generated
     */
    private String bankAddr;

    /**
     * 开户行账号
     *
     * @mbg.generated
     */
    private String bankAccount;

    /**
     * 纳税人识别号
     *
     * @mbg.generated
     */
    private String taxpayerCode;

    /**
     * 统一社会信用代码/组织机构代码证号
     *
     * @mbg.generated
     */
    private String creditCode;

    /**
     * 路方帐号id
     *
     * @mbg.generated
     */
    private Long storeId;

    private static final long serialVersionUID = 1L;

    public String getRoadOwnerId() {
        return roadOwnerId;
    }

    public void setRoadOwnerId(String roadOwnerId) {
        this.roadOwnerId = roadOwnerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getBank() {
        return bank;
    }

    public void setBank(String bank) {
        this.bank = bank;
    }

    public String getBankAddr() {
        return bankAddr;
    }

    public void setBankAddr(String bankAddr) {
        this.bankAddr = bankAddr;
    }

    public String getBankAccount() {
        return bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    public String getTaxpayerCode() {
        return taxpayerCode;
    }

    public void setTaxpayerCode(String taxpayerCode) {
        this.taxpayerCode = taxpayerCode;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roadOwnerId=").append(roadOwnerId);
        sb.append(", name=").append(name);
        sb.append(", contact=").append(contact);
        sb.append(", tel=").append(tel);
        sb.append(", address=").append(address);
        sb.append(", bank=").append(bank);
        sb.append(", bankAddr=").append(bankAddr);
        sb.append(", bankAccount=").append(bankAccount);
        sb.append(", taxpayerCode=").append(taxpayerCode);
        sb.append(", creditCode=").append(creditCode);
        sb.append(", storeId=").append(storeId);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ItcsRoadownerInfo other = (ItcsRoadownerInfo) that;
        return (this.getRoadOwnerId() == null ? other.getRoadOwnerId() == null : this.getRoadOwnerId().equals(other.getRoadOwnerId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getContact() == null ? other.getContact() == null : this.getContact().equals(other.getContact()))
            && (this.getTel() == null ? other.getTel() == null : this.getTel().equals(other.getTel()))
            && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress()))
            && (this.getBank() == null ? other.getBank() == null : this.getBank().equals(other.getBank()))
            && (this.getBankAddr() == null ? other.getBankAddr() == null : this.getBankAddr().equals(other.getBankAddr()))
            && (this.getBankAccount() == null ? other.getBankAccount() == null : this.getBankAccount().equals(other.getBankAccount()))
            && (this.getTaxpayerCode() == null ? other.getTaxpayerCode() == null : this.getTaxpayerCode().equals(other.getTaxpayerCode()))
            && (this.getCreditCode() == null ? other.getCreditCode() == null : this.getCreditCode().equals(other.getCreditCode()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoadOwnerId() == null) ? 0 : getRoadOwnerId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getContact() == null) ? 0 : getContact().hashCode());
        result = prime * result + ((getTel() == null) ? 0 : getTel().hashCode());
        result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode());
        result = prime * result + ((getBank() == null) ? 0 : getBank().hashCode());
        result = prime * result + ((getBankAddr() == null) ? 0 : getBankAddr().hashCode());
        result = prime * result + ((getBankAccount() == null) ? 0 : getBankAccount().hashCode());
        result = prime * result + ((getTaxpayerCode() == null) ? 0 : getTaxpayerCode().hashCode());
        result = prime * result + ((getCreditCode() == null) ? 0 : getCreditCode().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        return result;
    }
}